﻿using System;
using System.Collections.Generic;

namespace OestsCommon.Model
{
    /// <summary>
    /// 题型
    /// </summary>
    public enum SubjectType
    {
        /// <summary>
        /// 多选题
        /// </summary>
        MultipleChoice,
        /// <summary>
        /// 单选题
        /// </summary>
        SingleChoice,
        /// <summary>
        /// 判断题
        /// </summary>
        TrueOrFalse
    }

    /// <summary>
    /// 理论题基类
    /// </summary>
    public class Subject
    {
        /// <summary>
        /// 题目id
        /// </summary>
        public int Id { get; set; }
        /// <summary>
        /// 题目类型
        /// </summary>
        public SubjectType SubType { get; set; }
        public int PostId { get; set; }
        /// <summary>
        /// 所属项目ID
        /// </summary>
        public int ProjectId { get; set; }
        /// <summary>
        /// 题目描述
        /// </summary>
        public string Title { get; set; }
        public string A { get; set; }
        public string B { get; set; }
        public string C { get; set; }
        public string D { get; set; }
        public string E { get; set; }
        /// <summary>
        /// 题目答案
        /// </summary>
        public List<Char> Answer { get; set; }
        /// <summary>
        /// 得分
        /// </summary>
        public int Score { get; set; }
        /// <summary>
        /// 答案解析
        /// </summary>
        public string Describle { get; set; }

        public string Creator { get; set; }
        public int UseCount { get; set; }


    }
}
